package main.aquarium

abstract class AquariumFish {
    abstract val color: String
}

class Shark : AquariumFish(), FishAction {
    override fun eat() {
        println("hunt and eat fish")
    }

    override val color: String
        get() = "grey"
}

class GoldFish : AquariumFish(), FishAction {
    override fun eat() {
        println("Munch on angle")
    }

    override val color: String
        get() = "gold"
}

interface FishAction {
    fun eat()
}